// 科技感风格单选框
.tech-radio-group {
  display: flex;
  gap: 16px;
}

:deep(.el-radio) {
  position: relative;
  height: auto;
  margin-right: 0;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  
  &:hover {
    background: rgba(0, 150, 255, 0.1);
    
    .el-radio__inner {
      border-color: rgba(0, 170, 255, 0.7);
      box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
    }
  }
  
  &:active {
    background: rgba(0, 150, 255, 0.2);
  }
  
  .el-radio__input {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .el-radio__inner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(35, 85, 140, 0.6);
    border-radius: 50%;
    background: rgba(18, 30, 45, 0.6);
    position: relative;
    transition: all 0.25s ease;
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 170, 255, 0.5), 
        transparent
      );
      opacity: 0.7;
    }
    
    &::after {
      content: '';
      position: absolute;
      background-color: transparent;
      width: 0;
      height: 0;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    }
  }
  
  .el-radio__label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding-left: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 180, 255, 0.2);
    transition: all 0.3s;
  }
  
  &.is-checked {
    .el-radio__inner {
      background: linear-gradient(
        135deg,
        rgba(0, 85, 150, 0.9),
        rgba(0, 130, 210, 0.9)
      );
      border-color: rgba(0, 170, 255, 0.8);
      box-shadow: 
        inset 0 0 8px rgba(0, 210, 255, 0.3),
        0 0 12px rgba(0, 170, 255, 0.4);
        
      &::after {
        position: absolute;
        content: '';
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        background-color: rgba(0, 220, 255, 0.9);
        border-radius: 50%;
        filter: drop-shadow(0 0 3px rgba(0, 210, 255, 0.8));
        animation: radio-appear 0.3s forwards;
      }
    }
    
    .el-radio__label {
      color: rgba(0, 200, 255, 0.95);
      text-shadow: 0 0 8px rgba(0, 180, 255, 0.4);
    }
  }
}

// 额外适配用户代码中的模式切换
.select-script-type {
  display: flex;
  padding: 8px;
  background: rgba(15, 30, 45, 0.3);
  border-radius: 6px;
//   border: 1px solid rgba(35, 85, 140, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 140, 255, 0.05);
 
}

@keyframes radio-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes border-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
